package com.cet.regularexpression;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-06-22 14:08
 **/
public class Main09 {

    private static Pattern MY_PATTERN = Pattern.compile("(\\d+?)(0*)");

    public static void main(String[] args) {
        Matcher matcher = MY_PATTERN.matcher("123000");
        if (matcher.matches()) {
            System.out.println(matcher.group(1));
            System.out.println(matcher.group(2));
        }
    }
}
